﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="Web.Teamsoo.Contact" %>

<%@ Register Src="/Teamsoo/UserControl/Top.ascx" TagName="Top" TagPrefix="uc1" %>
<%@ Register Src="/Teamsoo/UserControl/Bottom.ascx" TagName="Bottom" TagPrefix="uc2" %>
<%@ Register Src="/Teamsoo/UserControl/Banner.ascx" TagName="Banner" TagPrefix="uc3" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <uc1:Top ID="Top1" runat="server" />
    <script type="text/javascript">
        function opennewurl(QQ) {
            window.open('http://sighttp.qq.com/msgrd?v=3&uin=' + QQ + '&site=qq&menu=yes', '_blank');
        }
        function PostValue() {
            $.post('SiteAjax.ashx?type=addmsg', {
                name: $('#name').val(),
                company: $('#company').val(),
                linknum: $('#linknum').val(),
                linkemail: $('#linkemail').val(),
                address: $('#address').val(),
                checkcode: $('#checkcode').val(),
                need: $('#need').val()
            }, function (data) {
                if (data != "ok") {
                    alert(data);
                }
                else {
                    alert('我们已收到您的需求，感谢您的投递。\r\n我们会在之后的24小时内与您取得联系。\r\n谢谢！');
                    window.top.location.reload(true);
                }
            });
        }

        $(function () {
            $("input,#need").click(function () {
                if ($(this).val() == this.defaultValue) {
                    $(this).val('');
                    $(this).removeClass('novalue');
                    $(this).addClass('havevalue');
                }
            });
            $("input,#need").blur(function () {
                if ($(this).val() == '') {
                    $(this).val(this.defaultValue);
                    $(this).removeClass('havevalue');
                    $(this).addClass('novalue');
                }
            });
        });
    </script>
</head>
<body>
    <uc3:Banner ID="Banner1" runat="server" />
    <div class="ny_banner">
        <div class="nyb_c" style="background: url(/Teamsoo/Teamsoo/images/contus1.gif) bottom center no-repeat;">
        </div>
    </div>
    <div class="ny_main">
        <div class="cont_usleft">
            <img alt="" src="/Teamsoo/Teamsoo/images/contus2.gif" width="109" height="109" />
        </div>
        <div class="cont_usright">
            <div class="cont_us_txt">
                感谢您浏览了我们的网站，如果需要更多帮助，<br />
                欢迎向我们提交需求信息，我们也欢迎您亲临天索互动公司与我们面谈。
            </div>
            <div class="contxt">
                <div class="tmsoo_contxt_cn">
                    <img alt="广州" src="http://teamsoo.com/UpLoadFile/KEUpLoad/image/20130412/20130412203141_8125_gz_office.gif" />
                    <div>
                    </div>
                    <b>天索互动（广州）总公司</b><br />
                    <b>公 司：</b>广州天索信息技术有限公司<br />
                    <b>电 话：</b>020-8751 5575 / 8756 2780<br />
                    <b>传 真：</b>020-8756 2780-816<br />
                    <b>邮 箱：</b>ts@@teamsoo.com<br />
                    <b>地 址：</b>广州市天河区龙口西路100号中明大厦1401<br />
                </div>
                <div class="tmsoo_contxt_cn">
                    <img alt="深圳" src="http://teamsoo.com/UpLoadFile/KEUpLoad/image/20130412/20130412203153_4062_sz_office.gif" />
                    <div>
                    </div>
                    <b>天索互动（深圳）办事处</b><br />
                    <b>电 话：</b>0755-2955 9963<br />
                    <b>手 机：</b>138 2433 0936 (张生)<br />
                    <b>传 真：</b>0755-2919 2115<br />
                    <b>邮 箱：</b>ts@@teamsoo.com<br />
                    <b>地 址：</b>深圳市宝安区107国道西乡路口富强大厦805<br />
                </div>
            </div>
        </div>
    </div>
    <div style="margin: 0 auto; overflow: hidden; width: 976px;">
        <div style="float: left; width: 109px;">
        </div>
        <div style="float: right; width: 783px;">
            <div class="submit_top">
                快速提交您的需求，我们将在24小时内回复您的信息。
            </div>
            <form action="SiteAjax.ashx" method="post">
                <div class="submit_bot">
                    <div class="sb_top">
                        <div class="sumit_input">
                            <input id="name" name="name" value="您的姓名" class="input_submits novalue" type="text"
                                maxlength="10" />
                        </div>
                        <div class="sumit_input">
                            <input id="address" name="address" value="贵公司网站地址" class="input_submits novalue"
                                type="text" maxlength="50" />
                        </div>
                        <div class="sumit_input">
                            <input id="linknum" name="linknum" value="您的联系电话" class="input_submits novalue" type="text" />
                        </div>
                        <div class="sumit_input">
                            <input id="linkemail" name="linkemail" value="您的QQ或邮箱" class="input_submits novalue"
                                type="text" maxlength="30" />
                        </div>
                        <div class="sumit_input">
                            <input id="company" name="company" value="您所代表的公司" class="input_submits novalue"
                                type="text" maxlength="40" />
                        </div>
                        <div class="sumit_input2">
                            <table>
                                <tr>
                                    <td>
                                        <input id="checkcode" name="checkcode" value="请输入右侧验证码" class="checkcode novalue"
                                            type="text" maxlength="10" />
                                    </td>
                                    <td>&nbsp;&nbsp;&nbsp;&nbsp;
                                    <img style="cursor: pointer; height: 30px;" title="点击更换验证码" onclick="this.src='AddMsg.ashx?aaa='+new Date()"
                                        alt="" src="AddMsg.ashx" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div class="sb_area">
                        <div class="sb_area_inputs">
                            <textarea class="sb_aiarea novalue" id="need" name="need" cols="" rows="">您的详细需求描述</textarea>
                        </div>
                        <div class="sbar_btn">
                            <input style="background: url(/Teamsoo/Teamsoo/images/contus8.gif) 0 0 no-repeat; width: 165px; height: 100px; cursor: pointer; border: 0;"
                                type="button" onclick="PostValue()" />
                        </div>
                    </div>
                </div>
            </form>
            <div class="ly_tip">
                或者直接将需求发送到邮件：<a href="mailto:ts@@teamsoo.com">ts@@teamsoo.com</a>
            </div>
        </div>
    </div>
    <uc2:Bottom ID="Bottom1" runat="server" />
</body>
</html>
